package com.jzo2o.market.mapper;

import com.jzo2o.market.model.domain.Coupon;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jzo2o.market.model.dto.response.CountResDTO;
import com.jzo2o.market.model.dto.response.CouponInfoResDTO;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author itcast
 * @since 2023-09-16
 */
public interface CouponMapper extends BaseMapper<Coupon> {

    /**
     * 根据活动id列表查询优惠券领取数量
     *
     * @param activityIdList 活动id列表
     * @return 优惠券领取数量列表
     */
    List<CountResDTO> countByActivityIdReceiveList(List<Long> activityIdList);
}
